#ifndef _THREAD_H
#define _THREAD_H
#include <pthread.h>

class Thread
{
public:
    Thread();
    virtual ~Thread() {}
    void start();
    void join();

private:
    virtual void run() = 0;
    static void *start_routine(void *);

private:
    pthread_t _pthid;
    bool _isRunning;
};

#endif
